package com.scholarship.modules.backend.dao;

import lombok.*;

import java.util.List;

/**
 * @author ZhzGod
 * @date 2021/9/8 16:05
 * @introduction
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ListRewardTable {
    List<String> list;//表中自带的属性
    Integer tableId;//表id
    String tableName;//表名
    Integer left;//分页查询开始
    Integer size;//页的大小
    String state;    //状态
    String stuClass;   //行政班级
    String searchStr;//模糊搜索
    //用于搜索全部的构造器
    public ListRewardTable(List<String> list, Integer tableId, String tableName, Integer left, Integer size){
        this.list = list;
        this.tableId = tableId;
        this.tableName = tableName;
        this.left = left;
        this.size = size;
    }
    //用于筛选搜索的构造器
    public ListRewardTable(List<String> list, Integer tableId, String tableName, int left, Integer size, String state, String stuClass) {
        this.list = list;
        this.tableId = tableId;
        this.tableName = tableName;
        this.left = left;
        this.size = size;
        this.state = state;
        this.stuClass = stuClass;
    }
    //用于模糊搜索的构造器
    public ListRewardTable(List<String> list, Integer tableId, String tableName, int left, Integer size, String searchStr) {
        this.list = list;
        this.tableId = tableId;
        this.tableName = tableName;
        this.left = left;
        this.size = size;
        this.searchStr = searchStr;
    }
}
